<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>11_盒子模型-特点-行内元素设置浮动</title>
        <style>
            span {
                /* 设置浮动的行内元素  具备行内块元素的特性 */
                float: left;
                font-size: 20px;
                color: red;
                background-color: aqua;
                border:1px solid black;

                width: 100px;
                height: 100px;
            }
        </style>
    </head>
    <body>
        <span>1</span>
        <span>2</span>
    </body>
</html>